<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
/* .fade-enter-active,
        .fade-leave-active {
            transition: opacity 10s;
        }

        .fade-enter,
        .fade-leave {
            opacity: 0;
        } */

.fade-enter-active ,
.fade-leave-active{animation-name:bounceIn;
  animation-duration:.75s;
}

.fade-enter ,
.fade-leave{opacity:0;
}


@keyframes bounceIn{from ,
  20% ,
  40% ,
  60% ,
  80% ,
  to{animation-timing-function:cubic-bezier(.215, .610, .355, 1.000);
  }

  0%{transform:scale3d(.3, .3, .3);

    opacity:0;
  }

  20%{transform:scale3d(1.1, 1.1, 1.1);
  }

  40%{transform:scale3d(.9, .9, .9);
  }

  60%{transform:scale3d(1.03, 1.03, 1.03);

    opacity:1;
  }

  80%{transform:scale3d(.97, .97, .97);
  }

  to{transform:scale3d(1, 1, 1);

    opacity:1;
  }
}

    </style>
</head>

<body>


    <div id="temp">
        <button v-on:click="show=!show">触发</button>
        <transition name="fade">
            <p v-if="show">你看不到我的,你还是看到我了?</p>
        </transition>
    </div>

    <script src="node_modules/jquery/dist/jquery.js"></script>
    <script src="node_modules/vue/dist/vue.js"></script>
    <script>
        var vm = new Vue({
            el: "#temp",
            data: {
                show: true,
            }
        })
    </script>
</body>

</html>